#! /usr/bin/python

MAX=50+1
nodes = set()
for x in range(0, MAX):
    for y in range(0, MAX):
	nodes.add((x, y))

print len(nodes)

nodes.remove((0,0))
count = 0
for (x1, y1) in nodes:
    for (x2, y2) in nodes:
	if (x1, y1) != (x2, y2) and x1**2 + y1**2 == x1*x2 + y1*y2:
		print x1, y1
		count += 1

print count+50*50
	   
